// [Router]
import { createRouter, createWebHashHistory } from 'vue-router'


const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    // which is lazy-loaded when the route is visited.
    component: () => import('../views/admin/login.vue')
  },
  {
    path: '/home',
    name: 'home',
    //component: () => import('../views/home.vue')
  }
]

const router = createRouter(
  {
    history: createWebHashHistory(),
    routes
  }
)



export default router
